package com.jiawa.train.business.resp;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.time.LocalDateTime;

@Data
public class DailyTrainQueryResp {
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDateTime date;
    private String code;
    private String type;
    private String start;
    private String startPinyin;
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime startTime;
    private String end;
    private String endPinyin;
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime endTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;
}
